BaseSubsystem.Exists 方法
檢查變數是否存在。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
bool Exists(
string Name,
IUserVariable Parent = null
)
Function Exists(
Name As String,
Parent = null As IUserVariable
) As Boolean
參數
Name
型別:string
變數名稱。
Parent
預設值:null
IUserVariable 的父資料夾,預設會檢查根資料夾中的變數。
回傳值
型別:bool
回傳使用者變數是否存在。
備註
- Name 字串使用 UTF-16 編碼。
- 此變數可用於 KINGSTAR 示波器 及即時記錄檔。
可用的 EtherCAT 狀態
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
參見